<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"
%><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"
%><%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"
%><%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"
%><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"
%>
<head>
    <title><fmt:message key="field" /></title>
</head>
<body>
    <h1><fmt:message key="field" /></h1>
	<div class="buttons">
		<c:url var="updateUrl" value="/domain/field/createForm.action">
			<c:param name="field.structureInode" value="${field.structure.inode}"/>
		</c:url>
        <a href="${updateUrl}"><span><fmt:message key="label.link.create"/>Field</span></a>

	</div>
    <table>
        <tbody>
            
			<tr>
                <th><fmt:message key="field_structureInode" /></th>
                <td>
					<c:url var="structureUrl" value="/domain/structure/show.action">
						<c:param name="structure.inode" value="${field.structure.inode}"/>
					</c:url>

					<a href="${structureUrl}">
						<c:out value="${field.structure.name}"/>
					</a>
                </td>
            </tr>
            <tr>
                <th><fmt:message key="field_fieldName" /></th>
                <td>
                    <c:out value="${field.fieldName}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="field_fieldType" /></th>
                <td>
                    <c:out value="${field.fieldTypeName}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="field_dataType" /></th>
                <td>
                    <c:out value="${field.dataTypeName}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="field_fieldContentlet" /></th>
                <td>
                    <c:out value="${field.fieldContentlet}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="field_required" /></th>
                <td>
                    <c:out value="${field.required}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="field_indexed" /></th>
                <td>
                    <c:out value="${field.indexed}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="field_listed" /></th>
                <td>
                    <c:out value="${field.listed}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="field_velocityVarName" /></th>
                <td>
                    <c:out value="${field.velocityVarName}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="field_sortOrder" /></th>
                <td>
                    <c:out value="${field.sortOrder}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="field_fieldValues" /></th>
                <td>
                    <c:out value="${field.fieldValues}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="field_regexCheck" /></th>
                <td>
                    <c:out value="${field.regexCheck}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="field_hint" /></th>
                <td>
                    <c:out value="${field.hint}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="field_defaultValue" /></th>
                <td>
                    <c:out value="${field.defaultValue}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="field_searchable" /></th>
                <td>
                    <c:out value="${field.searchable}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="field_unique_" /></th>
                <td>
                    <c:out value="${field.unique_}"/>                </td>
            </tr>

        </tbody>
        <tfoot>
            <tr>
                <td colspan="2">
                    <div class="buttons">
                        <c:url var="updateUrl" value="/domain/field/updateForm.action">
                            <c:param name="field.inode" value="${field.inode}"/>
                        </c:url>
                        <a href="${updateUrl}"><span><fmt:message key="label.link.update"/></span></a>
                        <c:url var="confirmDeleteUrl" value="/domain/field/confirmDelete.action">
                            <c:param name="field.inode" value="${field.inode}"/>
                        </c:url>
                        <a id="confirmDeleteUrl" href="${confirmDeleteUrl}"><span><fmt:message key="label.link.delete"/></span></a>
                        <script type="text/javascript">
                            Spring.addDecoration(new Spring.AjaxEventDecoration({
                                elementId: "confirmDeleteUrl",
                                event: "onclick",
                                popup: "true",
                                params: { decorator: "none" }
                            }));
                        </script>
                    </div>
                </td>
            </tr>
        </tfoot>
    </table>
</body>
